﻿namespace WorkflowComm
{

    public class WorkflowRule
    { 
        public string RuleName { get; set; }
        public string ErrorMessage { get; set; }
        public string Expression { get; set; }
    }
    public class WorkflowRuleResult
    { 
        public WorkflowRule Rule { get; set; }
        public bool IsSuccess { get; set; }
        public string ExceptionMessage { get; set; }

    }
    public interface IWorkflowRulesEngine
    {
      Task<IEnumerable<WorkflowRuleResult>>   ExecuteAsync(List<WorkflowRule> rules, params object[] data );

    }
     
  


}